package com.lj.service.Impl;

import com.lj.mapper.PstaffMapper;
import com.lj.pojo.Pstaff;
import com.lj.service.PstaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PstaffServiceImpl implements PstaffService {
    @Autowired
    PstaffMapper pstaffMapper;
    @Override
    public Pstaff select(String id) {
        return pstaffMapper.selectPstaff(id);
    }

    @Override
    public int update(String staffPassword, String staffName, Byte staffAge, String staffSex, String staffPhone, String staffId) {
        return pstaffMapper.updatePstaff(staffPassword,staffName,staffAge,staffSex,staffPhone,staffId);
    }
}
